home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / labs / rasterops / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.4 KB  |  80 lines

  1.  
  2.     ~opengl2/examples/raster README
  3.  
  4.             Copyright 1991, 1992, 1993, Silicon Graphics,  Inc.
  5.             Technical Education Development
  6.             All Rights Reserved.
  7.  
  8.  
  9.          A collection of programs implementing raster 
  10.               positioning and pixel operations within the OpenGL.
  11.    
  12.  
  13.  
  14.     blendrgb.c
  15.     Demonstrates how to use the GL_EXT_blend_color extensions
  16.     to blend two images that do not have an alpha channel.
  17.  
  18.     Up Arrow        - increase blend factor
  19.     Down Arrow        - decrease blend factor
  20.     Escape key        - exit the program
  21.  
  22.  
  23.     collage.c:  display one or more image files as a collage.
  24.         Display one or more image files as a collage using glRasterPos2f()
  25.     and glDrawPixels()
  26.         
  27.       usage:  collage <file.rgb> [<file2.rgb>] ...
  28.   
  29.       Up to MAX_IMAGES can be read.  collage will randomly
  30.       display images zoomed randomly in random positions.
  31.  
  32.     Escape key        - exit the program
  33.       SPACEBAR        - toggle fixed/random zoom
  34.   
  35.  
  36.     copyImage.c
  37.         Demonstrates the glCopyPixels() routine.  copyImage copies the 
  38.     pixels under the cursor when LEFTMOUSE is pressed.
  39.  
  40.       Escape key         - exit the program
  41.       Left Mousebutton, down     - copy pixels
  42.       Middle Mousebutton, down - expand viewing area
  43.       Right Mousebutton, down     - shrink viewing area
  44.  
  45.  
  46.     copyZoom.c:  demonstates the glCopyPixels() and glPixelZoom() routines.
  47.  
  48.     Escape key                      - exit the program
  49.     Left Mousebutton, down          - copy pixels
  50.     Middle Mousebutton, down        - zoom down
  51.     Right Mousebutton, down         - zoom up
  52.  
  53.  
  54.  
  55.     show.c:  displays an sgi rgb format image file in a window.
  56.         show creates a window displaying any RGB image stored in the SGI 
  57.     .rgb format.  The filename is opened and the image data is read.  
  58.       The image is then displayed in a window.
  59.  
  60.     Escape key               - exit the program
  61.  
  62.  
  63.     pan.c:  creates a window displaying a subimage of any RGB image 
  64.     stored in the SGI .rgb format.  It opens the file specified on the
  65.     command line and creates a window displaying a subimage taken 
  66.     from the middle of the image.
  67.      
  68.     The image can be panned by dragging the mouse with the
  69.     Left Mousebutton pressed.
  70.  
  71.     Left Mousebutton, down   - pan subimage
  72.     Escape key               - exit the program
  73.  
  74.  
  75.     windowSnap.c:  write pixel data from the window to an image file.
  76.       When LEFTMOUSE is pressed and released the window is captured,
  77.       the pixel data is written into a file, and the program exits.
  78.  
  79.     Left Mousebutton, up     - get snapshot of window and exit
  80.